(function ($) {
    var SearchForm = function () {
        this.pageCount = 0;
        this.heightList = 0;
        this.userExistCompetition = false;
        this.currentStep = "home";
    };

    SearchForm.prototype.initSearchForm = function () {
    	var self = this;
        
    }
    SearchForm.prototype.slideToggle = function(e) {
    	$(e).slideToggle();
    }
    
    SearchForm.prototype.checkBroswer = function() {
        if($.browser.msie && parseInt($.browser.version) <= 6) {
            return true;
        }
            return false;
    }
    
    jQuery(function ($) {
        var searchForm = new SearchForm();
        searchForm.initSearchForm();
        
        $.validator.setDefaults({
        	submitHandler: function() 
            { 
                $(".form-validate").unbind();
                $(".form-validate").submit();
                $("#form-subscribe").unbind();
                $("#form-subscribe").submit();
            }
        });
       
        $(".form-validate").validate();
        $("#form-subscribe").validate();
        
        $('.link-popup').click(function(e) {
           var url = $(this).parent().attr('href'); 
           windowPopup(url);
           return false;
        });
        $(document).on("click",".link-delete", function(e) { 
            e.preventDefult();
    		return confirm('Are you sure want to delete this item?');
    	});
        
        function windowPopup(url)
        {
            window.open(url, null, "width=700, height=500, scrollbars=yes");
            return false;   
        }
        
      });

})(jQuery);